How can I improve exception handling in Scala to reduce boilerplate code

join shbcf.ru